package com.shuwen.gcdj.mapper.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.plan.request.PlanDetailPageReq;
import com.shuwen.gcdj.bean.plan.request.PlanIndexReq;
import com.shuwen.gcdj.bean.plan.request.SecondPlanReq;
import com.shuwen.gcdj.bean.plan.response.ItemDetailResp;
import com.shuwen.gcdj.bean.plan.response.PlanDetailResp;
import com.shuwen.gcdj.bean.plan.response.SecondPlanTreeResp;
import com.shuwen.gcdj.bean.plan.response.SecondPlanTreeRespList;
import com.shuwen.gcdj.entity.StrategyPlancycle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :yys
 * @date : 2023/5/11 13:16
 */
@Mapper
public interface PlanMapper extends BaseMapper<StrategyPlancycle> {

    /**
     * 获取计划明细分页信息
     * @param page
     * @param req
     * @return
     */
    IPage<PlanDetailResp> getplandetailpagelist(Page<PlanDetailResp> page,@Param("req") PlanDetailPageReq req);

    /**
     * 获取日历数据
     * @param req
     * @return
     */
    List<SecondPlanTreeResp> getThirdStructurePage(@Param("req")SecondPlanReq req);

    List<SecondPlanTreeRespList> getSecondPlanTreeRespList(@Param("req")SecondPlanReq req);

    List<ItemDetailResp> getList(@Param("id")String id,@Param("structureId")String structureId);

    List<SecondPlanTreeResp> getCureDatePlan(@Param("req")PlanIndexReq req);

    List<SecondPlanTreeRespList> getCureDatePlanList(@Param("req")PlanIndexReq req);
}
